home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960425-19960715 / 000139_news@columbia.edu _Fri May 24 09:54:00 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id JAA07195 for <kermit.misc@watsun>; Fri, 24 May 1996 09:54:00 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id JAA09675 for kermit.misc@watsun; Fri, 24 May 1996 09:53:57 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Accessing multiple types of modems?
  8. Date: 24 May 1996 13:53:54 GMT
  9. Organization: Columbia University
  10. Lines: 35
  11. Message-ID: <4o4f1i$9e9@apakabar.cc.columbia.edu>
  12. References: <31a4fd85.87049414@news.vnet.net>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <31a4fd85.87049414@news.vnet.net>,
  16. Milton Baucom <mbaucom@vnet.net> wrote:
  17. : Is there a "recommended" way to access a pool of different kind of
  18. : modems using Kermit?  I've got 4 14.4 Multitechs, 2 2400 Multitechs,
  19. : and 2 28.8 Multitechs.  I want to select the next available modem and
  20. : somehow get Kermit to recognize the type and speed.
  21. That is a tough one.  In the general case, this would be akin to
  22. implementing "plug and play" in Kermit -- something a company the size of
  23. Microsoft might be able to do on a grand scale, but not a reasonable goal
  24. for a small operation like ours.
  25.  
  26. But that's where Kermit's script language comes in handy.  If, by chance,
  27. there were a command you could give to the modem to have it identify
  28. itself, such as ATIn (where "n" is usually some digit, like 3), that would
  29. be ideal, especially if all three varieties recognized the same command
  30. but responded uniquely.
  31.  
  32. Then you might do something like this:
  33.  
  34.   set host terminal-server-name port-number
  35.   if fail ...
  36.   output ati3\13    ; or whatever
  37.   input \10         ; read back the echo
  38.   if fail ...
  39.   clear input       ; clear INPUT buffer
  40.   if fail ...
  41.   input \10         ; read back the response
  42.   if fail ...
  43.  
  44. At the point, the \v(input) variable should contain the response.
  45. Then you can use IF EQUAL or similar commands, and/or string functions
  46. to analyze it and decide what to do.
  47.  
  48. - Frank